package org.u2ml.stack.xml.xstream;

import org.hibernate.collection.PersistentBag;
import org.hibernate.collection.PersistentList;
import org.hibernate.collection.PersistentSet;

import com.thoughtworks.xstream.converters.collections.CollectionConverter;
import com.thoughtworks.xstream.mapper.Mapper;

class HibernateCollectionConverter extends CollectionConverter {
	HibernateCollectionConverter(Mapper mapper) {
		super(mapper);
	}

	public boolean canConvert(Class type) {
		return super.canConvert(type) 
				|| type == PersistentList.class
				|| type == PersistentSet.class
				|| type == PersistentBag.class
				;
	}
}